import 'package:flutter/material.dart';
import 'package:flutterdemo/day02/01_statelesswidget.dart';

// 实现圆角图像 方式一：CircleAvatar
class JKHomeContent1 extends StatelessWidget {
  final imageUrl = 'http://image.xcar.com.cn/attachments/a/day_200323/2020032314_59939b0716c40f9be872JrmcP75B4KfO.jpg-app';
  @override
  Widget build(BuildContext context) {
    // http://image.xcar.com.cn/attachments/a/day_200323/2020032314_59939b0716c40f9be872JrmcP75B4KfO.jpg-app
    return Center(
      child: CircleAvatar(
        radius: 100,
        backgroundImage: NetworkImage("https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"),
        child: Container(
          alignment: Alignment(0, 0.5),
          width: 200,
          height: 200,
        ),
      ),
    );
  }
}

// 实现圆角图像 方式一：CircleAvatar
